package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="SY_CJWT"
 *     
*/
public class SyCjwt implements Serializable {

    /** identifier field */
    private String wtbh;

    /** persistent field */
    private String wtbt;

    /** nullable persistent field */
    private String da;

    /** nullable persistent field */
    private String fj;

    /** persistent field */
    private String xwtBz;

    /** persistent field */
    private String rq;

    /** nullable persistent field */
    private String xh;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** full constructor */
    public SyCjwt(String wtbh, String wtbt, String da, String fj, String xwtBz, String rq, String xh, String zt1, String zt2) {
        this.wtbh = wtbh;
        this.wtbt = wtbt;
        this.da = da;
        this.fj = fj;
        this.xwtBz = xwtBz;
        this.rq = rq;
        this.xh = xh;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public SyCjwt() {
    }

    /** minimal constructor */
    public SyCjwt(String wtbh, String wtbt, String xwtBz, String rq) {
        this.wtbh = wtbh;
        this.wtbt = wtbt;
        this.xwtBz = xwtBz;
        this.rq = rq;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="WTBH"
     *         
     */
    public String getWtbh() {
        return this.wtbh;
    }

    public void setWtbh(String wtbh) {
        this.wtbh = wtbh;
    }

    /** 
     *            @hibernate.property
     *             column="WTBT"
     *             length="400"
     *             not-null="true"
     *         
     */
    public String getWtbt() {
        return this.wtbt;
    }

    public void setWtbt(String wtbt) {
        this.wtbt = wtbt;
    }

    /** 
     *            @hibernate.property
     *             column="DA"
     *             length="2000"
     *         
     */
    public String getDa() {
        return this.da;
    }

    public void setDa(String da) {
        this.da = da;
    }

    /** 
     *            @hibernate.property
     *             column="FJ"
     *             length="200"
     *         
     */
    public String getFj() {
        return this.fj;
    }

    public void setFj(String fj) {
        this.fj = fj;
    }

    /** 
     *            @hibernate.property
     *             column="XWT_BZ"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getXwtBz() {
        return this.xwtBz;
    }

    public void setXwtBz(String xwtBz) {
        this.xwtBz = xwtBz;
    }

    /** 
     *            @hibernate.property
     *             column="RQ"
     *             length="14"
     *             not-null="true"
     *         
     */
    public String getRq() {
        return this.rq;
    }

    public void setRq(String rq) {
        this.rq = rq;
    }

    /** 
     *            @hibernate.property
     *             column="XH"
     *             length="10"
     *         
     */
    public String getXh() {
        return this.xh;
    }

    public void setXh(String xh) {
        this.xh = xh;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("wtbh", getWtbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof SyCjwt) ) return false;
        SyCjwt castOther = (SyCjwt) other;
        return new EqualsBuilder()
            .append(this.getWtbh(), castOther.getWtbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getWtbh())
            .toHashCode();
    }

}
